package com.qumitech.visualnovel.component.thirdapi.qiniu.config;

import com.qumitech.visualnovel.component.util.GetPropertiesUtils;
import com.qumitech.visualnovel.component.config.Config;

public class UploadConfig {

    private static final String accessKey = "Q16DlAL33px9HK6lXFeE9ByFMPFjUe9A0zLq9uAB";
    private static final String secretKey = "e7t82nmXYgu0HGbU9qXRjZm6SAik67X0C4e_UPDl";
    private static final String uploadUrl = "http://upload.qiniu.com";

    /**
     * 上传的Bucket
     */
    private static final String bucket = Config.getProperty("app.qiniu.bucket");
    private static final String domain = Config.getProperty("app.qiniu.domain");

    private static final String oldUrl = "https://imp.qumitech.com/";

    /*文件类型*/
    private static final String image = "image";

    private static final String video = "video";

    private static final String file = "file";


    /**
     * token过期间隔，单位为秒
     */
    private static final long expireInterval = 30 * 24 * 60 * 60;

    public static String getAccessKey() {
        return accessKey;
    }

    public static String getSecretKey() {
        return secretKey;
    }

    public static String getUploadUrl() {
        return uploadUrl;
    }

    public static String getBucket() {
        return bucket;
    }

    public static String getDomain() {
        return domain;
    }

    public static String getImage() {
        return image;
    }

    public static String getVideo() {
        return video;
    }

    public static String getFile() {
        return file;
    }

    public static long getExpireInterval() {
        return expireInterval;
    }

    public static String getOldUrl(){
        return oldUrl;
    }
}
